import com.imau.config.SpringConfig;
import com.imau.service.BookService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class BookTestAnnotaion {

    @Test
    public void TestAnnotation()
    {
        // 创建容器，xml配置文件
        ApplicationContext ctx  = new AnnotationConfigApplicationContext(SpringConfig.class);

        BookService bookService = (BookService)ctx.getBean("bookService");

        bookService.save();
    }

    @Test
    public  void testJson()
    {



    }
}
